package com.linkai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 库存
 * </p>
 *
 * @author yamon
 * @since 2021-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Storage对象", description="库存")
public class Storage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "外键，商品id")
    private Integer proId;

    @ApiModelProperty(value = "商品名称")
    private String proTitle;

    @ApiModelProperty(value = "单位")
    private String proUnit;

    @ApiModelProperty(value = "库存数量")
    private Integer proNum;

    @ApiModelProperty(value = "单价")
    private BigDecimal proPrice;

    @ApiModelProperty(value = "总价")
    private BigDecimal proMoney;

      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "备注")
    private String back;

    @ApiModelProperty(value = "进货单id外键")
    private Integer inputOrderId;

    @ApiModelProperty(value = "仓库 用作判断")
    private Integer bstoId;

    @ApiModelProperty(value = "供应商 也是用作判断")
    private Integer supId;


}
